package com.sicpa.common.enums;

import com.sicpa.common.utils.StringUtils;

/**
 * BusinessOpinionItemEnum
 * @author lwf
 */
public enum BusinessOpinionItemEnum {

    Unqualified_opinion("无保留意见"),
    PARAGRAPH_WITH_EMPHASIS_WITHOUT_RESERVATION("带强调事项段无保留意见"),
    RESERVATION("保留意见"),
    NEGATIVE_OPINION("否定意见"),
    UNABLE_TO_EXPRESS_OPINIONS("无法表示意见"),
    OTHER("其他")
    ;

    private String item;

    BusinessOpinionItemEnum(String item) {
        this.item = item;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public static boolean checkAll(String tem){
        return StringUtils.equals(tem,BusinessOpinionItemEnum.Unqualified_opinion.getItem()) || StringUtils.equals(tem,BusinessOpinionItemEnum.PARAGRAPH_WITH_EMPHASIS_WITHOUT_RESERVATION.getItem())
                || StringUtils.equals(tem,BusinessOpinionItemEnum.RESERVATION.getItem()) || StringUtils.equals(tem,BusinessOpinionItemEnum.NEGATIVE_OPINION.getItem())
                || StringUtils.equals(tem,BusinessOpinionItemEnum.UNABLE_TO_EXPRESS_OPINIONS.getItem()) || StringUtils.equals(tem,BusinessOpinionItemEnum.OTHER.getItem()
        );
    }

}
